/**=========================================================
 * Directive: simple-check.js
 =========================================================*/

App.directive('simpleCheck', [
    function() {
        'use strict';
        
        return {
            restrict: 'EA',
            replace: true,
            template: function($element,$attrs){
                var options = $attrs.optionModel;
                var label = $attrs.label;
                
                return '\
                    <div class="control-label checkbox c-checkbox needsclick">\
                        <label class="needsclick" style="font-weight:bold">\
                            <input type="checkbox" value="" class="needsclick" ng-model="checkboxs.' + options + '"/>\
                            <span class="fa fa-check"></span>\
                            ' + label + '\
                        </label>\
                    </div>\
                '
            }
        }
    }
]);
